package org.example.L03_01;

public class L03_01_gouzao {
    //    变量aa
    int aa;
//

    //    构造函数是一种特殊方法，用于初始化对象。即new 对象的时候，构造函数一定会被调用
//    构造函数也可以接受参数，用于初始化属性。被执行时，需传入形参类型对应实参
    public L03_01_gouzao(int bb){
        System.out.println("构造L03_01_gouzao！");
        //    设置对象属性的初始值
        aa=bb;
    }

    //    main 函数内定义的变量my01 不是类的属性，而是局部变量
    public static void main(String[] args) {
//        调用构造函数
        L03_01_gouzao my_01 =new L03_01_gouzao(66);
        System.out.println(my_01.aa);
    }

    /*
    * "C:\Program Files\Java\jdk1.8.0_181\bin\java.exe" "-javaagent:D:\JetBrains\IntelliJ IDEA 2023\IntelliJ IDEA 2022.3.1\lib\idea_rt.jar=58466:D:\JetBrains\IntelliJ IDEA 2023\IntelliJ IDEA 2022.3.1\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\Java\jdk1.8.0_181\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\jaccess.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\jfxrt.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\nashorn.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\sunec.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\sunpkcs11.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\ext\zipfs.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\jce.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\jfxswt.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\resources.jar;C:\Program Files\Java\jdk1.8.0_181\jre\lib\rt.jar;D:\A Ahomework\IDEA\L03-xss\target\classes" org.example.L03_01.L03_01_gouzao
    构造L03_01_gouzao！
    66

    Process finished with exit code 0
    * */


}
